﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <CheckBox 
      Content="CheckBox" 
      Height="16" 
      HorizontalAlignment="Left" 
      Margin="10,10,0,0" 
      Name="CheckBox1" 
      VerticalAlignment="Top" 
      IsThreeState="True" 
      Checked="HandleCheck" 
      Unchecked="HandleUnchecked" 
      Indeterminate="HandleThirdState"/>
  </Grid>
</Window>
